<!DOCTYPE html>
<html lang="en">
<head>
    <meta name="description" content="后台管理">
    <!-- Twitter meta-->
    <title>后台管理</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- Main CSS-->
    <link rel="stylesheet" type="text/css" href="../../public/admin/css/main.css">
    <!-- Font-icon css-->
    <link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">

    <script src="../../public/admin/js/jquery-3.2.1.min.js"></script>
    <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <script type="text/javascript" src="https://cdn.bootcss.com/Swiper/3.4.2/js/swiper.jquery.min.js"></script>
    <script src="../../public/admin/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="../../public/admin/js/xadmin.js"></script>
    <script src="../../public/admin/js/popper.min.js"></script>
    <script src="../../public/admin/js/bootstrap.min.js"></script>
    <script src="../../public/admin/js/main.js"></script>
    <script src="../../public/admin/js/plugins/pace.min.js"></script>
    <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <script type="text/javascript" src="https://cdn.bootcss.com/Swiper/3.4.2/js/swiper.jquery.min.js"></script>
    <script src="../../public/admin/js/lib/layui/layui.js" charset="utf-8"></script>
    <style>
        td{background-color: #dff0d8;}
        .form-group{ padding: 10px 5px}
    </style>
</head>
<body class="app sidebar-mini rtl">
<?php if(!empty($_COOKIE['uname']) && !empty($_COOKIE['auth'])) { ?>
    <form action="contro_vip.php?a=edit" method="post">
        <div class="form-group">
            <input type="hidden" name="id" value="<?php echo $_GET['id'] ?>">
            <input type="hidden" name="auth" value="<?php echo $_GET['auth'] ?>">
            <input type="hidden" name="authname" value="<?php echo $_GET['authname'] ?>">
            <label for="exampleInputEmail1">用户名</label>
            <input name="name" value="<?php echo $_GET['name'] ?>" readonly type="email" class="form-control" id="exampleInputEmail1" >
        </div>
        <div class="form-group">
            <label for="exampleInputPassword1">密码</label>
            <input type="text" class="form-control" id="exampleInputPassword1" readonly name="pwd" value="<?php echo $_GET['pwd'] ?>">
        </div>
        <div class="form-group">
            <label for="exampleInputPassword1">新密码</label>
            <input type="text" class="form-control" id="exampleInputPassword1" name="pwd" value="">
        </div>
        <div class="form-group">
            <label for="exampleInputPassword1">权限</label>
            <input type="text" class="form-control" id="exampleInputPassword1" readonly name="auth" value="<?php echo $_GET['authname'] ?> ">
        </div>

        <button style="text-align: center" type="submit" onclick="x_admin_close()" class="btn btn-default">修改</button>
    </form>
    <?php
}else{
    echo "<script>alert('你还没登录');window.location.href='../index.php';</script>";die;
}
?>
</body>
</html>
